#define _CRT_SECURE_NO_WARNINGS 1

#include"AVLTree.h"

int main()
{
	AVLTree<int, int> t;
	//int arr[] = { 16, 3, 7, 11, 9, 26, 18, 14, 15 };
	//int arr[] = { 1,2,3,4,5 };
	int arr[] = { 4, 2, 6, 1, 3, 5, 15, 7, 16, 14 };
	for (auto& e : arr)
	{
		if (e == 5)
			int i = 0;
		t.insert({ e,e });

	}
	t.InOrder();
	cout << t._isBalanceTree();
	return 0;
}